package cn.tedu.mybatisdemo.mapper;

import cn.tedu.mybatisdemo.pojo.Student;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface StudentMapper {

    public List<Student> getStudentAll();

    public int insertStudent();

    public int updateStudent();

    public int deleteStudent();

    //根据id获取学生信息
    public Student getStudentById(Long id);
    //根据name查询学生信息
    public Student getStudentByName(String name);
    //查询指定的编号范围内的学生信息记录
    public List<Student> selectListByIds(Integer minId,Integer maxId);

    public int addStudent(Student student);
}
